package com.zzj.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;

/**
 * <p>
 * 好友表
 * </p>
 *
 * @author zzj
 * @since 2023-05-13
 */
@TableName("picc_chat_friends")
public class ChatFriends implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户用户名
     */
    private String fromUsername;

    /**
     * 用户姓名
     */
    private String fromName;

    /**
     * 用户头像
     */
    private String fromAvatar;

    /**
     * 好友用户名
     */
    private String toUsername;

    /**
     * 好友头像
     */
    private String toAvatar;

    /**
     * 好友姓名
     */
    private String toName;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private String createTime;

    /**
     * 更新时间
     */
       @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateTime;

    /**
     * 好友状态 0正常
     */
    private Integer status;

    /**
     * 未读消息数量
     */
    private Integer noReadNum;

    /**
     * 最后的
     */
    private String last;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getFromUsername() {
        return fromUsername;
    }

    public void setFromUsername(String fromUsername) {
        this.fromUsername = fromUsername;
    }

    public String getFromName() {
        return fromName;
    }

    public void setFromName(String fromName) {
        this.fromName = fromName;
    }

    public String getFromAvatar() {
        return fromAvatar;
    }

    public void setFromAvatar(String fromAvatar) {
        this.fromAvatar = fromAvatar;
    }

    public String getToUsername() {
        return toUsername;
    }

    public void setToUsername(String toUsername) {
        this.toUsername = toUsername;
    }

    public String getToAvatar() {
        return toAvatar;
    }

    public void setToAvatar(String toAvatar) {
        this.toAvatar = toAvatar;
    }

    public String getToName() {
        return toName;
    }

    public void setToName(String toName) {
        this.toName = toName;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getNoReadNum() {
        return noReadNum;
    }

    public void setNoReadNum(Integer noReadNum) {
        this.noReadNum = noReadNum;
    }

    public String getLast() {
        return last;
    }

    public void setLast(String last) {
        this.last = last;
    }

    @Override
    public String toString() {
        return "ChatFriends{" +
        "id = " + id +
        ", fromUsername = " + fromUsername +
        ", fromName = " + fromName +
        ", fromAvatar = " + fromAvatar +
        ", toUsername = " + toUsername +
        ", toAvatar = " + toAvatar +
        ", toName = " + toName +
        ", createTime = " + createTime +
        ", updateTime = " + updateTime +
        ", status = " + status +
        ", noReadNum = " + noReadNum +
        ", last = " + last +
        "}";
    }
}
